import request from '@/utils/request'

// 配置自助机全部列表-分页
export function getAllPage(query) {
    return request({
        url: '/jxstation/ATMTicket/getAllPage',
        method: 'get',
        params: query
    })
}
// 根据自助机编码查询详情
export function machine(query) {
    return request({
        url: '/jxstation/machine/get',
        method: 'get',
        params: query
    })
}
// 添加自有自助机配置
export function ATMTicket(query) {
    return request({
        url: '/jxstation/ATMTicket/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 渠道商充值接口
export function recharge(query) {
    return request({
        url: '/jxstation/trader/recharge',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 添加自有自助机
export function add(query) {
    return request({
        url: '/jxstation/machine/add',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 编辑自有自助机配置
export function modify(query) {
    return request({
        url: '/jxstation/ATMTicket/modify',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data: query
    })
}
// 查询自助机状态
export function getCount(query) {
    return request({
        url: '/jxstation/ATMTicket/getCount',
        method: 'get',
        params: query
    })
}




